package com.example.demo.repository;

import com.example.demo.entity.LabCategory;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface LabCategoryRepository extends JpaRepository<LabCategory, Long> {
    Optional<LabCategory> findByName(String name);
    boolean existsByName(String name);
} 